import React, {Component} from 'react';
import { View, Text,Image,ImageBackground,StyleSheet,TouchableOpacity } from "react-native";

export default class LeftButton extends Component{
  constructor(props){
    super(props);
    // /console.log('left',this.props)
  }
	render(){
		return(
			<TouchableOpacity  style={styles.left} onPress={()=>{this.props.navigation.pop()}}>
		    <Image style={styles.imgStyle} source={require('../images/back-icon.png')}/>
		  </TouchableOpacity>
		)
	}
}
const styles = StyleSheet.create({
	imgStyle:{
		width:12,
		height:20,
	},
	left:{
		width: '100%', 
		height: '100%',
		justifyContent:'center',
		alignItems:'center',
		//borderWidth:1,
		//borderColor:'red',
		marginLeft:10,
	}

})